<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the NamespaceFileTranslationLoader constructor from Class NamespaceFileTranslationLoader from the namespace_file_translation_loader library, for the Dart programming language.">
  <title>NamespaceFileTranslationLoader constructor - NamespaceFileTranslationLoader - namespace_file_translation_loader library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">flutter_i18n</a></li>
    <li><a href="../../loaders_namespace_file_translation_loader/loaders_namespace_file_translation_loader-library.html">namespace_file_translation_loader</a></li>
    <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader-class.html">NamespaceFileTranslationLoader</a></li>
    <li class="self-crumb">NamespaceFileTranslationLoader constructor</li>
  </ol>
  <div class="self-name">NamespaceFileTranslationLoader</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        brightness_4
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        brightness_5
      </span>
    </label>
  </div>
</header>
<main>

  <div id="dartdoc-main-content" class="main-content">
      <div>
<h1><span class="kind-constructor">NamespaceFileTranslationLoader</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">NamespaceFileTranslationLoader</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="-param-namespaces">{<span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>&gt;</span>?</span> <span class="parameter-name">namespaces</span>, </span></li>
<li><span class="parameter" id="-param-fallbackDir"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">fallbackDir</span> = <span class="default-value">&quot;en&quot;</span>, </span></li>
<li><span class="parameter" id="-param-basePath"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">basePath</span> = <span class="default-value">&quot;assets&#47;flutter_i18n&quot;</span>, </span></li>
<li><span class="parameter" id="-param-useCountryCode"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">useCountryCode</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-useScriptCode"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">useScriptCode</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-forcedLocale"><span class="type-annotation">dynamic</span> <span class="parameter-name">forcedLocale</span>, </span></li>
<li><span class="parameter" id="-param-decodeStrategies"><span class="type-annotation">dynamic</span> <span class="parameter-name">decodeStrategies</span>}</span></li>
</ol>)
    </section>

    


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">NamespaceFileTranslationLoader(
    {required this.namespaces,
    this.fallbackDir = &quot;en&quot;,
    this.basePath = &quot;assets&#47;flutter_i18n&quot;,
    this.useCountryCode = false,
    this.useScriptCode = false,
    forcedLocale,
    decodeStrategies})
    : super(
          basePath: basePath,
          useCountryCode: useCountryCode,
          useScriptCode: useScriptCode,
          forcedLocale: forcedLocale,
          decodeStrategies: decodeStrategies) {
  assert(namespaces != null);
  assert(namespaces!.length &gt; 0);
}</code></pre>
</section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
  <li><a href="../../index.html">flutter_i18n</a></li>
  <li><a href="../../loaders_namespace_file_translation_loader/loaders_namespace_file_translation_loader-library.html">namespace_file_translation_loader</a></li>
  <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader-class.html">NamespaceFileTranslationLoader</a></li>
  <li class="self-crumb">NamespaceFileTranslationLoader constructor</li>
</ol>


    <h5>NamespaceFileTranslationLoader class</h5>
    <ol>

        <li class="section-title"><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader-class.html#constructors">Constructors</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/NamespaceFileTranslationLoader.html">NamespaceFileTranslationLoader</a></li>


        <li class="section-title">
          <a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader-class.html#instance-properties">Properties</a>
        </li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/assetBundle.html">assetBundle</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/basePath.html">basePath</a></li>
          <li class="inherited"><a href="../../loaders_file_translation_loader/FileTranslationLoader/decodeStrategies.html">decodeStrategies</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/fallbackDir.html">fallbackDir</a></li>
          <li class="inherited"><a href="../../loaders_file_translation_loader/FileTranslationLoader/fallbackFile.html">fallbackFile</a></li>
          <li class="inherited"><a href="../../loaders_translation_loader/TranslationLoader/forcedLocale.html">forcedLocale</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
          <li class="inherited"><a href="../../loaders_translation_loader/TranslationLoader/locale.html">locale</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/namespaces.html">namespaces</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/useCountryCode.html">useCountryCode</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/useScriptCode.html">useScriptCode</a></li>

        <li class="section-title"><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader-class.html#instance-methods">Methods</a></li>
          <li class="inherited"><a href="../../loaders_file_translation_loader/FileTranslationLoader/composeFileName.html">composeFileName</a></li>
          <li class="inherited"><a href="../../loaders_translation_loader/TranslationLoader/findDeviceLocale.html">findDeviceLocale</a></li>
          <li><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader/load.html">load</a></li>
          <li class="inherited"><a href="../../loaders_file_translation_loader/FileTranslationLoader/loadFile.html">loadFile</a></li>
          <li class="inherited"><a href="../../loaders_file_translation_loader/FileTranslationLoader/loadString.html">loadString</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></li>

        <li class="section-title inherited"><a href="../../loaders_namespace_file_translation_loader/NamespaceFileTranslationLoader-class.html#operators">Operators</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>




</ol>

  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_i18n
      0.32.5
  </span>

  
</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>



</body>

</html>

